package com.bootdo.program.weixin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.program.weixin.dao.WxUserDao;
import com.bootdo.program.weixin.domain.WxUserDO;
import com.bootdo.program.weixin.service.WxUserService;



@Service
public class WxUserServiceImpl implements WxUserService {
	@Autowired
	private WxUserDao wxUserDao;
	
	@Override
	public WxUserDO get(Integer id){
		return wxUserDao.get(id);
	}

	@Override
	public WxUserDO getOpenId(String openid) {
		return wxUserDao.getOpenId(openid);
	}

	@Override
	public List<WxUserDO> list(Map<String, Object> map){
		return wxUserDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return wxUserDao.count(map);
	}
	
	@Override
	public int save(WxUserDO wxUser){
		return wxUserDao.save(wxUser);
	}
	
	@Override
	public int update(WxUserDO wxUser){
		return wxUserDao.update(wxUser);
	}
	
	@Override
	public int remove(Integer id){
		return wxUserDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return wxUserDao.batchRemove(ids);
	}
	
}
